package cn.stylefeng.guns.modular.biz.pojo.request;

import cn.stylefeng.roses.kernel.rule.pojo.request.BaseRequest;
import cn.stylefeng.roses.kernel.rule.annotation.ChineseDescription;
import lombok.Data;
import lombok.EqualsAndHashCode;
import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.NotNull;
import java.math.BigDecimal;
import java.util.List;

/**
 * 煤场基础场地代码封装类
 *
 * @author 张朋飞
 * @since 2024/09/13 16:37
 */
@EqualsAndHashCode(callSuper = true)
@Data
public class WmMdWarehouseRequest extends BaseRequest {

    /**
     * 主键id
     */
    @NotNull(message = "主键id不能为空", groups = {edit.class, delete.class})
    @ChineseDescription("主键id")
    private Long siteId;
    /**
     * 煤场名称
     */
    @NotBlank(message = "煤场名称不能为空", groups = {add.class, edit.class})
    @ChineseDescription("煤场名称")
    private String siteName;
    /**
     * 煤场编码
     */
    @NotBlank(message = "煤场编码不能为空", groups = {add.class, edit.class})
    @ChineseDescription("煤场编码")
    private String siteCode;
    /**
     * 理想容量（t）
     */
    @ChineseDescription("理想容量（t）")
    private BigDecimal siteIdealCapacity;
    /**
     * 低库存警戒值（t）
     */
    @ChineseDescription("低库存警戒值（t）")
    private BigDecimal siteLowStock;
    /**
     * 备注
     */
    @ChineseDescription("备注")
    private String remark;

    /**
     * 批量删除用的id集合
     */
    @NotNull(message = "批量删除id集合不能为空", groups = batchDelete.class)
    @ChineseDescription("批量删除用的id集合")
    private List<Long> batchDeleteIdList;

}